﻿using System;
using System.Windows.Forms;

namespace DotNetLib.系统功能.查询被占用的文件夹或文件夹
{
    public partial class HandleForm : Form
    {
        public HandleForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var dialogResult = folderBrowserDialog1.ShowDialog();
            if (dialogResult==DialogResult.OK)
            {
                var selectedPath = folderBrowserDialog1.SelectedPath;
                var handle=new Handle(selectedPath);
                var output=handle.GetHandleList();
                textBox1.Text = output;

            }
        }
    }
}
